Optimal. Leaf size=134 \[ -\frac{x \cosh ^4(a+b x)}{8 b^2}-\frac{3 x \cosh ^2(a+b x)}{8 b^2}+\frac{\sinh (a+b x) \cosh ^3(a+b x)}{32 b^3}+\frac{15 \sinh (a+b x) \cosh (a+b x)}{64 b^3}+\frac{x^2 \sinh (a+b x) \cosh ^3(a+b x)}{4 b}+\frac{3 x^2 \sinh (a+b x) \cosh (a+b x)}{8 b}+\frac{15 x}{64 b^2}+\frac{x^3}{8} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.106692, antiderivative size = 134, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3311, 30, 2635, 8} \[ -\frac{x \cosh ^4(a+b x)}{8 b^2}-\frac{3 x \cosh ^2(a+b x)}{8 b^2}+\frac{\sinh (a+b x) \cosh ^3(a+b x)}{32 b^3}+\frac{15 \sinh (a+b x) \cosh (a+b x)}{64 b^3}+\frac{x^2 \sinh (a+b x) \cosh ^3(a+b x)}{4 b}+\frac{3 x^2 \sinh (a+b x) \cosh (a+b x)}{8 b}+\frac{15 x}{64 b^2}+\frac{x^3}{8} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3311
Rule 30
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int x^2 \cosh ^4(a+b x) \, dx &=-\frac{x \cosh ^4(a+b x)}{8 b^2}+\frac{x^2 \cosh ^3(a+b x) \sinh (a+b x)}{4 b}+\frac{3}{4} \int x^2 \cosh ^2(a+b x) \, dx+\frac{\int \cosh ^4(a+b x) \, dx}{8 b^2}\\ &=-\frac{3 x \cosh ^2(a+b x)}{8 b^2}-\frac{x \cosh ^4(a+b x)}{8 b^2}+\frac{3 x^2 \cosh (a+b x) \sinh (a+b x)}{8 b}+\frac{\cosh ^3(a+b x) \sinh (a+b x)}{32 b^3}+\frac{x^2 \cosh ^3(a+b x) \sinh (a+b x)}{4 b}+\frac{3 \int x^2 \, dx}{8}+\frac{3 \int \cosh ^2(a+b x) \, dx}{32 b^2}+\frac{3 \int \cosh ^2(a+b x) \, dx}{8 b^2}\\ &=\frac{x^3}{8}-\frac{3 x \cosh ^2(a+b x)}{8 b^2}-\frac{x \cosh ^4(a+b x)}{8 b^2}+\frac{15 \cosh (a+b x) \sinh (a+b x)}{64 b^3}+\frac{3 x^2 \cosh (a+b x) \sinh (a+b x)}{8 b}+\frac{\cosh ^3(a+b x) \sinh (a+b x)}{32 b^3}+\frac{x^2 \cosh ^3(a+b x) \sinh (a+b x)}{4 b}+\frac{3 \int 1 \, dx}{64 b^2}+\frac{3 \int 1 \, dx}{16 b^2}\\ &=\frac{15 x}{64 b^2}+\frac{x^3}{8}-\frac{3 x \cosh ^2(a+b x)}{8 b^2}-\frac{x \cosh ^4(a+b x)}{8 b^2}+\frac{15 \cosh (a+b x) \sinh (a+b x)}{64 b^3}+\frac{3 x^2 \cosh (a+b x) \sinh (a+b x)}{8 b}+\frac{\cosh ^3(a+b x) \sinh (a+b x)}{32 b^3}+\frac{x^2 \cosh ^3(a+b x) \sinh (a+b x)}{4 b}\\ \end{align*}
Mathematica [A] time = 0.157266, size = 90, normalized size = 0.67 \[ \frac{64 b^2 x^2 \sinh (2 (a+b x))+8 b^2 x^2 \sinh (4 (a+b x))+32 \sinh (2 (a+b x))+\sinh (4 (a+b x))-64 b x \cosh (2 (a+b x))-4 b x \cosh (4 (a+b x))+32 b^3 x^3}{256 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.007, size = 253, normalized size = 1.9 \begin{align*}{\frac{1}{{b}^{3}} \left ({\frac{ \left ( bx+a \right ) ^{2}\sinh \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{3}}{4}}+{\frac{3\, \left ( bx+a \right ) ^{2}\cosh \left ( bx+a \right ) \sinh \left ( bx+a \right ) }{8}}+{\frac{ \left ( bx+a \right ) ^{3}}{8}}-{\frac{ \left ( bx+a \right ) \left ( \sinh \left ( bx+a \right ) \right ) ^{2} \left ( \cosh \left ( bx+a \right ) \right ) ^{2}}{8}}-{\frac{ \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{2}}{2}}+{\frac{\sinh \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{3}}{32}}+{\frac{15\,\cosh \left ( bx+a \right ) \sinh \left ( bx+a \right ) }{64}}+{\frac{15\,bx}{64}}+{\frac{15\,a}{64}}-2\,a \left ( 1/4\, \left ( bx+a \right ) \sinh \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{3}+3/8\, \left ( bx+a \right ) \cosh \left ( bx+a \right ) \sinh \left ( bx+a \right ) +3/16\, \left ( bx+a \right ) ^{2}-1/16\, \left ( \sinh \left ( bx+a \right ) \right ) ^{2} \left ( \cosh \left ( bx+a \right ) \right ) ^{2}-1/4\, \left ( \cosh \left ( bx+a \right ) \right ) ^{2} \right ) +{a}^{2} \left ( \left ({\frac{ \left ( \cosh \left ( bx+a \right ) \right ) ^{3}}{4}}+{\frac{3\,\cosh \left ( bx+a \right ) }{8}} \right ) \sinh \left ( bx+a \right ) +{\frac{3\,bx}{8}}+{\frac{3\,a}{8}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.04815, size = 178, normalized size = 1.33 \begin{align*} \frac{1}{8} \, x^{3} + \frac{{\left (8 \, b^{2} x^{2} e^{\left (4 \, a\right )} - 4 \, b x e^{\left (4 \, a\right )} + e^{\left (4 \, a\right )}\right )} e^{\left (4 \, b x\right )}}{512 \, b^{3}} + \frac{{\left (2 \, b^{2} x^{2} e^{\left (2 \, a\right )} - 2 \, b x e^{\left (2 \, a\right )} + e^{\left (2 \, a\right )}\right )} e^{\left (2 \, b x\right )}}{16 \, b^{3}} - \frac{{\left (2 \, b^{2} x^{2} + 2 \, b x + 1\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{16 \, b^{3}} - \frac{{\left (8 \, b^{2} x^{2} + 4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{512 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.98625, size = 373, normalized size = 2.78 \begin{align*} \frac{8 \, b^{3} x^{3} - b x \cosh \left (b x + a\right )^{4} - b x \sinh \left (b x + a\right )^{4} +{\left (8 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} - 16 \, b x \cosh \left (b x + a\right )^{2} - 2 \,{\left (3 \, b x \cosh \left (b x + a\right )^{2} + 8 \, b x\right )} \sinh \left (b x + a\right )^{2} +{\left ({\left (8 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )^{3} + 16 \,{\left (2 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )}{64 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.3555, size = 209, normalized size = 1.56 \begin{align*} \begin{cases} \frac{x^{3} \sinh ^{4}{\left (a + b x \right )}}{8} - \frac{x^{3} \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{4} + \frac{x^{3} \cosh ^{4}{\left (a + b x \right )}}{8} - \frac{3 x^{2} \sinh ^{3}{\left (a + b x \right )} \cosh{\left (a + b x \right )}}{8 b} + \frac{5 x^{2} \sinh{\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{8 b} + \frac{15 x \sinh ^{4}{\left (a + b x \right )}}{64 b^{2}} - \frac{3 x \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{32 b^{2}} - \frac{17 x \cosh ^{4}{\left (a + b x \right )}}{64 b^{2}} - \frac{15 \sinh ^{3}{\left (a + b x \right )} \cosh{\left (a + b x \right )}}{64 b^{3}} + \frac{17 \sinh{\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{64 b^{3}} & \text{for}\: b \neq 0 \\\frac{x^{3} \cosh ^{4}{\left (a \right )}}{3} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30187, size = 159, normalized size = 1.19 \begin{align*} \frac{1}{8} \, x^{3} + \frac{{\left (8 \, b^{2} x^{2} - 4 \, b x + 1\right )} e^{\left (4 \, b x + 4 \, a\right )}}{512 \, b^{3}} + \frac{{\left (2 \, b^{2} x^{2} - 2 \, b x + 1\right )} e^{\left (2 \, b x + 2 \, a\right )}}{16 \, b^{3}} - \frac{{\left (2 \, b^{2} x^{2} + 2 \, b x + 1\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{16 \, b^{3}} - \frac{{\left (8 \, b^{2} x^{2} + 4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{512 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]